Optimal. Leaf size=100 \[ \frac {64 c \sec ^3(e+f x) (c-c \sin (e+f x))^{3/2}}{3 a^2 f}-\frac {16 \sec ^3(e+f x) (c-c \sin (e+f x))^{5/2}}{a^2 f}+\frac {2 \sec ^3(e+f x) (c-c \sin (e+f x))^{7/2}}{a^2 c f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.18, antiderivative size = 100, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.107, Rules used = {2815, 2753,
2752} \begin {gather*} \frac {2 \sec ^3(e+f x) (c-c \sin (e+f x))^{7/2}}{a^2 c f}-\frac {16 \sec ^3(e+f x) (c-c \sin (e+f x))^{5/2}}{a^2 f}+\frac {64 c \sec ^3(e+f x) (c-c \sin (e+f x))^{3/2}}{3 a^2 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2752
Rule 2753
Rule 2815
Rubi steps
\begin {align*} \int \frac {(c-c \sin (e+f x))^{5/2}}{(a+a \sin (e+f x))^2} \, dx &=\frac {\int \sec ^4(e+f x) (c-c \sin (e+f x))^{9/2} \, dx}{a^2 c^2}\\ &=\frac {2 \sec ^3(e+f x) (c-c \sin (e+f x))^{7/2}}{a^2 c f}+\frac {8 \int \sec ^4(e+f x) (c-c \sin (e+f x))^{7/2} \, dx}{a^2 c}\\ &=-\frac {16 \sec ^3(e+f x) (c-c \sin (e+f x))^{5/2}}{a^2 f}+\frac {2 \sec ^3(e+f x) (c-c \sin (e+f x))^{7/2}}{a^2 c f}-\frac {32 \int \sec ^4(e+f x) (c-c \sin (e+f x))^{5/2} \, dx}{a^2}\\ &=\frac {64 c \sec ^3(e+f x) (c-c \sin (e+f x))^{3/2}}{3 a^2 f}-\frac {16 \sec ^3(e+f x) (c-c \sin (e+f x))^{5/2}}{a^2 f}+\frac {2 \sec ^3(e+f x) (c-c \sin (e+f x))^{7/2}}{a^2 c f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.49, size = 104, normalized size = 1.04 \begin {gather*} \frac {c^2 \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right ) (25-3 \cos (2 (e+f x))+36 \sin (e+f x)) \sqrt {c-c \sin (e+f x)}}{3 a^2 f \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) (1+\sin (e+f x))^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 2.26, size = 71, normalized size = 0.71
method | result | size |
default | \(-\frac {2 c^{3} \left (\sin \left (f x +e \right )-1\right ) \left (3 \left (\sin ^{2}\left (f x +e \right )\right )+18 \sin \left (f x +e \right )+11\right )}{3 a^{2} \left (1+\sin \left (f x +e \right )\right ) \cos \left (f x +e \right ) \sqrt {c -c \sin \left (f x +e \right )}\, f}\) | \(71\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 312 vs.
\(2 (98) = 196\).
time = 0.51, size = 312, normalized size = 3.12 \begin {gather*} -\frac {2 \, {\left (11 \, c^{\frac {5}{2}} + \frac {36 \, c^{\frac {5}{2}} \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + \frac {56 \, c^{\frac {5}{2}} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac {108 \, c^{\frac {5}{2}} \sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}} + \frac {90 \, c^{\frac {5}{2}} \sin \left (f x + e\right )^{4}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{4}} + \frac {108 \, c^{\frac {5}{2}} \sin \left (f x + e\right )^{5}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{5}} + \frac {56 \, c^{\frac {5}{2}} \sin \left (f x + e\right )^{6}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{6}} + \frac {36 \, c^{\frac {5}{2}} \sin \left (f x + e\right )^{7}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{7}} + \frac {11 \, c^{\frac {5}{2}} \sin \left (f x + e\right )^{8}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{8}}\right )}}{3 \, {\left (a^{2} + \frac {3 \, a^{2} \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + \frac {3 \, a^{2} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac {a^{2} \sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}}\right )} f {\left (\frac {\sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + 1\right )}^{\frac {5}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.34, size = 82, normalized size = 0.82 \begin {gather*} -\frac {2 \, {\left (3 \, c^{2} \cos \left (f x + e\right )^{2} - 18 \, c^{2} \sin \left (f x + e\right ) - 14 \, c^{2}\right )} \sqrt {-c \sin \left (f x + e\right ) + c}}{3 \, {\left (a^{2} f \cos \left (f x + e\right ) \sin \left (f x + e\right ) + a^{2} f \cos \left (f x + e\right )\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 237 vs.
\(2 (98) = 196\).
time = 0.57, size = 237, normalized size = 2.37 \begin {gather*} \frac {4 \, \sqrt {2} \sqrt {c} {\left (\frac {3 \, c^{2} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )}{a^{2} {\left (\frac {\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1}{\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1} - 1\right )}} - \frac {5 \, c^{2} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) + \frac {12 \, c^{2} {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1\right )} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )}{\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1} + \frac {3 \, c^{2} {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1\right )}^{2} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )}{{\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1\right )}^{2}}}{a^{2} {\left (\frac {\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1}{\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1} + 1\right )}^{3}}\right )}}{3 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 11.68, size = 360, normalized size = 3.60 \begin {gather*} \frac {\sqrt {c-c\,\left (\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}-\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}\right )}\,\left (\frac {2\,c^2}{a^2\,f}-\frac {c^2\,{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,2{}\mathrm {i}}{a^2\,f}\right )}{{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}-\mathrm {i}}+\frac {16\,c^2\,{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,\sqrt {c-c\,\left (\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}-\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}\right )}}{a^2\,f\,\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}-\mathrm {i}\right )\,\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}+1{}\mathrm {i}\right )}-\frac {c^2\,{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,\sqrt {c-c\,\left (\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}-\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}\right )}\,32{}\mathrm {i}}{3\,a^2\,f\,\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}-\mathrm {i}\right )\,{\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}+1{}\mathrm {i}\right )}^2}-\frac {32\,c^2\,{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,\sqrt {c-c\,\left (\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}-\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}\right )}}{3\,a^2\,f\,\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}-\mathrm {i}\right )\,{\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}+1{}\mathrm {i}\right )}^3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________